import './style/index.scss'
import { decodePage,supportedNote } from './utils/PageDecoder';
import hcAnswerView from './answerView/answerView';
import hcVideoComponent from './answerView/VideoComponent'
import hcFlashVideoComponent from './answerView/FlashVideoComponent'
import hcStrokeView from './answerView/StrokeView'
import {Utils, prefixInteger, sortTree, toStrokeJSON} from './utils/Utils';
// import {NetUtil} from './utils/NetUtil';
import {URL} from './config/UrlConfig';
import {tripleLine} from './utils/tripleLine'
import {getQuestionOrderMap, getQuestionType, getQuestionTypeMap, sortQuestion, sortQuestionType} from "./config/AnswerSheetConfig";
// import {ConstJsonManager} from './utils/ConstJsonManager'

const cusCom = {
  hcAnswerView,
  hcVideoComponent,
  hcStrokeView,
  hcFlashVideoComponent
};
let HcAnswerView = function(Vue, opts = {}) {
  Object.keys(cusCom).forEach((key) => {
    Vue.component(key, cusCom[key]);
  });
};
let hcBase = {
  component:{HcAnswerView},
  Utils:{tripleLine,Utils,decodePage,prefixInteger,sortTree,toStrokeJSON,getQuestionTypeMap, getQuestionOrderMap, sortQuestion,getQuestionType, sortQuestionType},
  config:{URL,supportedNote},
  // NetUtil,
  // ConstJsonManager
}
export {hcBase}
